﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using umbraco.cms.businesslogic.member;
using System.Web.Security;
namespace Zebra.Umbraco.Marcos.Account
{
    public partial class signout : System.Web.UI.UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (umbraco.library.IsLoggedOn())
            {
                FormsAuthentication.SignOut();
                Session.Clear();
                Session.Abandon(); 

                Response.Redirect("/");
            }
        }
    }
}